<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>prencar: Move Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="prencar.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">prencar
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_move.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Move Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_move_8h_source.html">Move.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for Move:</div>
<div class="dyncontent">
<div class="center"><img src="class_move__coll__graph.png" border="0" usemap="#_move_coll__map" alt="Collaboration graph"/></div>
<map name="_move_coll__map" id="_move_coll__map">
<area shape="rect" id="node3" href="class_communication.html" title="Communication" alt="" coords="5,96,117,123"/><area shape="rect" id="node5" href="class_command.html" title="A Command object represents a command sent from the host software." alt="" coords="11,5,92,32"/><area shape="rect" id="node8" href="class_configuration.html" title="Configuration" alt="" coords="169,5,265,32"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_move-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a237261f2dd8fc115129f0ba998f13183"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a237261f2dd8fc115129f0ba998f13183">performFastStop</a> ()</td></tr>
<tr class="memitem:a9c5dc5c3a98abece0c2f40085c3601be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a9c5dc5c3a98abece0c2f40085c3601be">controlMotors</a> (<a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a> dirLeftMotor, int speedLeftMotor, <a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a> dirRightMotor, int speedRightMotor)</td></tr>
<tr class="memitem:af6b1197771f0540b0becc4117d8d272f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#af6b1197771f0540b0becc4117d8d272f">setLeftMotorDirection</a> (<a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a> dir)</td></tr>
<tr class="memitem:a06e67dafd581bbd086da404a90c4eeec"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a06e67dafd581bbd086da404a90c4eeec">setRightMotorDirection</a> (<a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a> dir)</td></tr>
<tr class="memitem:a0d9285d4088aa0c6fdab04f0a0e5df2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a0d9285d4088aa0c6fdab04f0a0e5df2c">changeMotorSpeed</a> (int changeLeftMotor, int changeRightMotor)</td></tr>
<tr class="memitem:a9d25d16f505526378fb4e43ee9e3b8c5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a9d25d16f505526378fb4e43ee9e3b8c5">setMotorSpeed</a> (int speedLeftMotor, int speedRightMotor)</td></tr>
<tr class="memitem:a8dfdbb462ec42c3a2b4682db5cd5c692"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a8dfdbb462ec42c3a2b4682db5cd5c692">equalizeMotorsSpeed</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a5b53cfa443fe4fe0f1b96f9b3afc4850"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_move.html">Move</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a5b53cfa443fe4fe0f1b96f9b3afc4850">getInstance</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a4b1acc3a67d30c385ad9a6000526393a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a4b1acc3a67d30c385ad9a6000526393a">Move</a> ()</td></tr>
<tr class="memitem:afcff6c5d4fd9e58382ee01d6270f4707"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#afcff6c5d4fd9e58382ee01d6270f4707">begin</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a280c47406bd7e652c35c7900ca8c745b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a280c47406bd7e652c35c7900ca8c745b">_dirLeftMotor</a></td></tr>
<tr class="memdesc:a280c47406bd7e652c35c7900ca8c745b"><td class="mdescLeft">&#160;</td><td class="mdescRight">current direction of left motor  <a href="#a280c47406bd7e652c35c7900ca8c745b"></a><br/></td></tr>
<tr class="memitem:ace1041b9df6281fdc960013ccac5c32a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#ace1041b9df6281fdc960013ccac5c32a">_dirRightMotor</a></td></tr>
<tr class="memdesc:ace1041b9df6281fdc960013ccac5c32a"><td class="mdescLeft">&#160;</td><td class="mdescRight">current direction of right motor  <a href="#ace1041b9df6281fdc960013ccac5c32a"></a><br/></td></tr>
<tr class="memitem:ada9423f195c9ee65b5448fcaabb96877"><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#ada9423f195c9ee65b5448fcaabb96877">_speedLeft</a></td></tr>
<tr class="memdesc:ada9423f195c9ee65b5448fcaabb96877"><td class="mdescLeft">&#160;</td><td class="mdescRight">current speed of left motor (pwm value 0-255)  <a href="#ada9423f195c9ee65b5448fcaabb96877"></a><br/></td></tr>
<tr class="memitem:a13362460beddf2de2415d51f3ed70841"><td class="memItemLeft" align="right" valign="top">byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a13362460beddf2de2415d51f3ed70841">_speedRight</a></td></tr>
<tr class="memdesc:a13362460beddf2de2415d51f3ed70841"><td class="mdescLeft">&#160;</td><td class="mdescRight">current speed of right motor (pwm value 0-255)  <a href="#a13362460beddf2de2415d51f3ed70841"></a><br/></td></tr>
<tr class="memitem:ae9e6d0860fc8dcf67798b19b961044cc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_communication.html">Communication</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#ae9e6d0860fc8dcf67798b19b961044cc">_com</a></td></tr>
<tr class="memdesc:ae9e6d0860fc8dcf67798b19b961044cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">The reference to the serial communication class.  <a href="#ae9e6d0860fc8dcf67798b19b961044cc"></a><br/></td></tr>
<tr class="memitem:ad5c8392b7540a9b46adf66918ef83fdb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_configuration.html">Configuration</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#ad5c8392b7540a9b46adf66918ef83fdb">_conf</a></td></tr>
<tr class="memdesc:ad5c8392b7540a9b46adf66918ef83fdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">The reference to the configuration class.  <a href="#ad5c8392b7540a9b46adf66918ef83fdb"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:a1ce3157933da403944e754b380365c93"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_move.html">Move</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#a1ce3157933da403944e754b380365c93">_instance</a></td></tr>
<tr class="memdesc:a1ce3157933da403944e754b380365c93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Static reference to the singleton object.  <a href="#a1ce3157933da403944e754b380365c93"></a><br/></td></tr>
<tr class="memitem:ab5a52d3f029707c767ef27a44fa5269a"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_move.html#ab5a52d3f029707c767ef27a44fa5269a">_instanceCreated</a> = false</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_move_8h_source.html#l00018">18</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4b1acc3a67d30c385ad9a6000526393a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_move.html#a4b1acc3a67d30c385ad9a6000526393a">Move::Move</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructur for the class. </p>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00030">30</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a4b1acc3a67d30c385ad9a6000526393a_icgraph.png" border="0" usemap="#class_move_a4b1acc3a67d30c385ad9a6000526393a_icgraph" alt=""/></div>
<map name="class_move_a4b1acc3a67d30c385ad9a6000526393a_icgraph" id="class_move_a4b1acc3a67d30c385ad9a6000526393a_icgraph">
<area shape="rect" id="node3" href="class_move.html#a5b53cfa443fe4fe0f1b96f9b3afc4850" title="Move::getInstance" alt="" coords="145,81,271,108"/><area shape="rect" id="node5" href="class_cube_approach.html#ac49270ba8b7c5bb6e60ffefc31175fc2" title="CubeApproach::begin" alt="" coords="491,5,637,32"/><area shape="rect" id="node12" href="class_line_follow.html#afac0ad1ff185b7e5f9b47428cb2e5e48" title="LineFollow::begin" alt="" coords="320,56,443,83"/><area shape="rect" id="node16" href="class_move.html#afcff6c5d4fd9e58382ee01d6270f4707" title="Move::begin" alt="" coords="336,107,427,133"/><area shape="rect" id="node7" href="class_state_machine.html#a18b495baeae11732b76d252b2b8341c8" title="StateMachine::begin" alt="" coords="685,31,827,57"/><area shape="rect" id="node9" href="class_state_machine.html#a7f7482a9af6910035a62f9c116165f60" title="StateMachine::getInstance" alt="" coords="875,31,1053,57"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="afcff6c5d4fd9e58382ee01d6270f4707"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_move.html#afcff6c5d4fd9e58382ee01d6270f4707">Move::begin</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prepares the <a class="el" href="class_move.html">Move</a> object to work according to the values defined in the configuration. The preparations done in here can not be done from within the constructor because of dependencies such as Serial communication. <b>This method needs to be called before this class can be fully used.</b> In this class it is done when getting an instance of the class the first time. </p>
<dl class="section see"><dt>See also:</dt><dd><a class="el" href="class_move.html#a5b53cfa443fe4fe0f1b96f9b3afc4850">getInstance()</a> </dd></dl>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00043">43</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_afcff6c5d4fd9e58382ee01d6270f4707_cgraph.png" border="0" usemap="#class_move_afcff6c5d4fd9e58382ee01d6270f4707_cgraph" alt=""/></div>
<map name="class_move_afcff6c5d4fd9e58382ee01d6270f4707_cgraph" id="class_move_afcff6c5d4fd9e58382ee01d6270f4707_cgraph">
<area shape="rect" id="node3" href="class_move.html#a5b53cfa443fe4fe0f1b96f9b3afc4850" title="Move::getInstance" alt="" coords="145,5,271,32"/><area shape="rect" id="node5" href="class_move.html#a4b1acc3a67d30c385ad9a6000526393a" title="Move::Move" alt="" coords="320,5,411,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_afcff6c5d4fd9e58382ee01d6270f4707_icgraph.png" border="0" usemap="#class_move_afcff6c5d4fd9e58382ee01d6270f4707_icgraph" alt=""/></div>
<map name="class_move_afcff6c5d4fd9e58382ee01d6270f4707_icgraph" id="class_move_afcff6c5d4fd9e58382ee01d6270f4707_icgraph">
<area shape="rect" id="node3" href="class_move.html#a5b53cfa443fe4fe0f1b96f9b3afc4850" title="Move::getInstance" alt="" coords="145,31,271,57"/><area shape="rect" id="node5" href="class_cube_approach.html#ac49270ba8b7c5bb6e60ffefc31175fc2" title="CubeApproach::begin" alt="" coords="491,5,637,32"/><area shape="rect" id="node12" href="class_line_follow.html#afac0ad1ff185b7e5f9b47428cb2e5e48" title="LineFollow::begin" alt="" coords="320,56,443,83"/><area shape="rect" id="node7" href="class_state_machine.html#a18b495baeae11732b76d252b2b8341c8" title="StateMachine::begin" alt="" coords="685,31,827,57"/><area shape="rect" id="node9" href="class_state_machine.html#a7f7482a9af6910035a62f9c116165f60" title="StateMachine::getInstance" alt="" coords="875,31,1053,57"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0d9285d4088aa0c6fdab04f0a0e5df2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_move.html#a0d9285d4088aa0c6fdab04f0a0e5df2c">Move::changeMotorSpeed</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>changeLeftMotor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>changeRightMotor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Changes the <b>current</b> speed of the two motors according to the given difference which can be positiv or negativ. The speed will not be less than 0 or more than 255 at the end. The direction of both motors is not affected. If they are not moving at the moment, a call to this method will not cause them rotating. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">changeLeftMotor</td><td>The value that shall be added to the current speed of the left motor. Can be a positive or negativ value. </td></tr>
    <tr><td class="paramname">changeRightMotor</td><td>The value that shall be added to the current speed of the right motor. Can be a positive or negativ value. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00197">197</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a0d9285d4088aa0c6fdab04f0a0e5df2c_cgraph.png" border="0" usemap="#class_move_a0d9285d4088aa0c6fdab04f0a0e5df2c_cgraph" alt=""/></div>
<map name="class_move_a0d9285d4088aa0c6fdab04f0a0e5df2c_cgraph" id="class_move_a0d9285d4088aa0c6fdab04f0a0e5df2c_cgraph">
<area shape="rect" id="node3" href="class_communication.html#a8679b3cb7ceef5527faa24454ce0f18a" title="Communication::send" alt="" coords="435,5,583,32"/><area shape="rect" id="node5" href="class_move.html#a9c5dc5c3a98abece0c2f40085c3601be" title="Move::controlMotors" alt="" coords="227,56,365,83"/><area shape="rect" id="node8" href="class_move.html#af6b1197771f0540b0becc4117d8d272f" title="Move::setLeftMotorDirection" alt="" coords="418,56,601,83"/><area shape="rect" id="node10" href="class_move.html#a06e67dafd581bbd086da404a90c4eeec" title="Move::setRightMotorDirection" alt="" coords="413,107,605,133"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9c5dc5c3a98abece0c2f40085c3601be"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_move.html#a9c5dc5c3a98abece0c2f40085c3601be">Move::controlMotors</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a>&#160;</td>
          <td class="paramname"><em>dirLeftMotor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>speedLeftMotor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a>&#160;</td>
          <td class="paramname"><em>dirRightMotor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>speedRightMotor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the direction and the speed of both motors. If the value speedLeftMotor or speedRightMotor is not in the range between 0 and 255, the maximum / minimum value of 255 or 0 will be set. If the direction is set to valueDependant, negative numbers are allowed which will cause the motor to rotate backwards (0 will set the motor to phaseOut). First the speed is set then the direction. First the left motor is set then the right. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dirLeftMotor</td><td>direction of left motor </td></tr>
    <tr><td class="paramname">speedLeftMotor</td><td>speed of left motor (0-255) </td></tr>
    <tr><td class="paramname">dirRightMotor</td><td>direction of right motor </td></tr>
    <tr><td class="paramname">speedRightMotor</td><td>speed of right motor (0-255) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00077">77</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a9c5dc5c3a98abece0c2f40085c3601be_cgraph.png" border="0" usemap="#class_move_a9c5dc5c3a98abece0c2f40085c3601be_cgraph" alt=""/></div>
<map name="class_move_a9c5dc5c3a98abece0c2f40085c3601be_cgraph" id="class_move_a9c5dc5c3a98abece0c2f40085c3601be_cgraph">
<area shape="rect" id="node3" href="class_communication.html#a8679b3cb7ceef5527faa24454ce0f18a" title="Communication::send" alt="" coords="214,5,362,32"/><area shape="rect" id="node5" href="class_move.html#af6b1197771f0540b0becc4117d8d272f" title="Move::setLeftMotorDirection" alt="" coords="197,56,379,83"/><area shape="rect" id="node7" href="class_move.html#a06e67dafd581bbd086da404a90c4eeec" title="Move::setRightMotorDirection" alt="" coords="192,107,384,133"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a9c5dc5c3a98abece0c2f40085c3601be_icgraph.png" border="0" usemap="#class_move_a9c5dc5c3a98abece0c2f40085c3601be_icgraph" alt=""/></div>
<map name="class_move_a9c5dc5c3a98abece0c2f40085c3601be_icgraph" id="class_move_a9c5dc5c3a98abece0c2f40085c3601be_icgraph">
<area shape="rect" id="node3" href="class_cube_approach.html#ac36a5c38b1108d4cd77172062e1795be" title="CubeApproach::doJob" alt="" coords="951,418,1100,445"/><area shape="rect" id="node5" href="class_state_machine.html#a32064aba8c9fa4afcb649d01aaf5fd78" title="StateMachine::doJob" alt="" coords="1563,253,1707,279"/><area shape="rect" id="node7" href="class_extended_move.html#adfe6e7de87eab16e9a85ad5434819fee" title="ExtendedMove::executeCommand" alt="" coords="193,291,413,318"/><area shape="rect" id="node25" href="class_line_center.html#aa466b77cad70e564633e106efde81d4f" title="LineCenter::doJob" alt="" coords="962,151,1089,178"/><area shape="rect" id="node40" href="class_line_follow.html#a46aa4b76c945adf0119a5dbb83a47481" title="LineFollow::startIt" alt="" coords="241,621,365,647"/><area shape="rect" id="node42" href="class_move.html#a0d9285d4088aa0c6fdab04f0a0e5df2c" title="Move::changeMotorSpeed" alt="" coords="217,671,389,698"/><area shape="rect" id="node44" href="class_move.html#a9d25d16f505526378fb4e43ee9e3b8c5" title="Move::setMotorSpeed" alt="" coords="498,519,646,546"/><area shape="rect" id="node51" href="class_state_machine.html#a26dd1980d9d8f24050b624fb16ac0e58" title="StateMachine::checkCommands" alt="" coords="467,570,677,597"/><area shape="rect" id="node9" href="class_extended_move.html#ab03bf2a16ad494c392c209d5c0b3b65d" title="ExtendedMove::doJob" alt="" coords="497,241,647,267"/><area shape="rect" id="node11" href="class_extended_move.html#a816f77b595c0ca03d44dd21b2d4de5ba" title="ExtendedMove::startCurrentQueue" alt="" coords="461,291,683,318"/><area shape="rect" id="node14" href="class_cube_approach.html#a7d68e4fab2b3f7590b21aef387855633" title="CubeApproach::turn" alt="" coords="745,367,882,394"/><area shape="rect" id="node17" href="class_curve_left.html#a2f70c4b1efef29cdf04dff01e6a90336" title="CurveLeft::startIt" alt="" coords="967,87,1083,114"/><area shape="rect" id="node20" href="class_lift_cube.html#ab5d1090dfcf43a319666d905b374d4a6" title="LiftCube::doJob" alt="" coords="1279,227,1390,254"/><area shape="rect" id="node23" href="class_line_center.html#a4496fa59d40b06887e2dbc881b9b4ce7" title="LineCenter::doCorrection" alt="" coords="731,165,896,191"/><area shape="rect" id="node33" href="class_move_back_to_line.html#a8b48709e127b00072dcce276cff5055b" title="MoveBackToLine::startIt" alt="" coords="945,266,1106,293"/><area shape="rect" id="node36" href="class_state_machine.html#ab3634a64f8a4065a7586fcd7b32883d1" title="StateMachine::startDriveOverFinishLineExtMoveCommand" alt="" coords="1155,329,1514,355"/><area shape="rect" id="node27" href="class_curve_left.html#a34930d2641dbbd389c536999a560f158" title="CurveLeft::doJob" alt="" coords="1276,126,1393,153"/><area shape="rect" id="node30" href="class_move_back_to_line.html#a2481a81f7c90dee23d229911c8821e65" title="MoveBackToLine::doJob" alt="" coords="1253,177,1416,203"/><area shape="rect" id="node46" href="class_line_follow.html#a93ff35747f2ae3bb26998f07243afc3c" title="LineFollow::doJob" alt="" coords="751,519,876,546"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8dfdbb462ec42c3a2b4682db5cd5c692"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_move.html#a8dfdbb462ec42c3a2b4682db5cd5c692">Move::equalizeMotorsSpeed</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Equalizes the speed of both motors by calculating the average speed of both motors and applying that to both motors. The direction of the motors will not be changed. The method can be used e. g. to move the car straight forward after a courve. </p>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00234">234</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a8dfdbb462ec42c3a2b4682db5cd5c692_cgraph.png" border="0" usemap="#class_move_a8dfdbb462ec42c3a2b4682db5cd5c692_cgraph" alt=""/></div>
<map name="class_move_a8dfdbb462ec42c3a2b4682db5cd5c692_cgraph" id="class_move_a8dfdbb462ec42c3a2b4682db5cd5c692_cgraph">
<area shape="rect" id="node3" href="class_communication.html#a8679b3cb7ceef5527faa24454ce0f18a" title="Communication::send" alt="" coords="241,5,389,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5b53cfa443fe4fe0f1b96f9b3afc4850"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_move.html">Move</a> * <a class="el" href="class_move.html#a5b53cfa443fe4fe0f1b96f9b3afc4850">Move::getInstance</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the <a class="el" href="class_move.html">Move</a> instance </p>
<dl class="section return"><dt>Returns:</dt><dd>Pointer to the move instance </dd></dl>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00013">13</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a5b53cfa443fe4fe0f1b96f9b3afc4850_cgraph.png" border="0" usemap="#class_move_a5b53cfa443fe4fe0f1b96f9b3afc4850_cgraph" alt=""/></div>
<map name="class_move_a5b53cfa443fe4fe0f1b96f9b3afc4850_cgraph" id="class_move_a5b53cfa443fe4fe0f1b96f9b3afc4850_cgraph">
<area shape="rect" id="node3" href="class_move.html#a4b1acc3a67d30c385ad9a6000526393a" title="Move::Move" alt="" coords="181,5,272,32"/><area shape="rect" id="node5" href="class_move.html#afcff6c5d4fd9e58382ee01d6270f4707" title="Move::begin" alt="" coords="181,56,272,83"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a5b53cfa443fe4fe0f1b96f9b3afc4850_icgraph.png" border="0" usemap="#class_move_a5b53cfa443fe4fe0f1b96f9b3afc4850_icgraph" alt=""/></div>
<map name="class_move_a5b53cfa443fe4fe0f1b96f9b3afc4850_icgraph" id="class_move_a5b53cfa443fe4fe0f1b96f9b3afc4850_icgraph">
<area shape="rect" id="node3" href="class_cube_approach.html#ac49270ba8b7c5bb6e60ffefc31175fc2" title="CubeApproach::begin" alt="" coords="352,5,499,32"/><area shape="rect" id="node10" href="class_line_follow.html#afac0ad1ff185b7e5f9b47428cb2e5e48" title="LineFollow::begin" alt="" coords="181,56,304,83"/><area shape="rect" id="node14" href="class_move.html#afcff6c5d4fd9e58382ee01d6270f4707" title="Move::begin" alt="" coords="197,107,288,133"/><area shape="rect" id="node5" href="class_state_machine.html#a18b495baeae11732b76d252b2b8341c8" title="StateMachine::begin" alt="" coords="547,31,688,57"/><area shape="rect" id="node7" href="class_state_machine.html#a7f7482a9af6910035a62f9c116165f60" title="StateMachine::getInstance" alt="" coords="737,31,914,57"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a237261f2dd8fc115129f0ba998f13183"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_move.html#a237261f2dd8fc115129f0ba998f13183">Move::performFastStop</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stops both motors immediately. </p>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00058">58</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a237261f2dd8fc115129f0ba998f13183_cgraph.png" border="0" usemap="#class_move_a237261f2dd8fc115129f0ba998f13183_cgraph" alt=""/></div>
<map name="class_move_a237261f2dd8fc115129f0ba998f13183_cgraph" id="class_move_a237261f2dd8fc115129f0ba998f13183_cgraph">
<area shape="rect" id="node3" href="class_communication.html#a8679b3cb7ceef5527faa24454ce0f18a" title="Communication::send" alt="" coords="211,5,359,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a237261f2dd8fc115129f0ba998f13183_icgraph.png" border="0" usemap="#class_move_a237261f2dd8fc115129f0ba998f13183_icgraph" alt=""/></div>
<map name="class_move_a237261f2dd8fc115129f0ba998f13183_icgraph" id="class_move_a237261f2dd8fc115129f0ba998f13183_icgraph">
<area shape="rect" id="node3" href="class_extended_move.html#ab03bf2a16ad494c392c209d5c0b3b65d" title="ExtendedMove::doJob" alt="" coords="229,5,379,32"/><area shape="rect" id="node5" href="class_line_follow.html#a93ff35747f2ae3bb26998f07243afc3c" title="LineFollow::doJob" alt="" coords="241,56,367,83"/><area shape="rect" id="node12" href="class_state_machine.html#a7d0130525bd2e5314fd0b17e568c307a" title="StateMachine::stopParcours" alt="" coords="211,107,397,133"/><area shape="rect" id="node7" href="class_cube_approach.html#ac36a5c38b1108d4cd77172062e1795be" title="CubeApproach::doJob" alt="" coords="476,5,625,32"/><area shape="rect" id="node9" href="class_state_machine.html#a32064aba8c9fa4afcb649d01aaf5fd78" title="StateMachine::doJob" alt="" coords="704,56,848,83"/><area shape="rect" id="node14" href="class_state_machine.html#a26dd1980d9d8f24050b624fb16ac0e58" title="StateMachine::checkCommands" alt="" coords="445,107,656,133"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af6b1197771f0540b0becc4117d8d272f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_move.html#af6b1197771f0540b0becc4117d8d272f">Move::setLeftMotorDirection</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a>&#160;</td>
          <td class="paramname"><em>dir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the direction of the left motor according to the given enum value.<br/>
 <b>The enum value valueDependant will be ignored.</b> </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td>direction to set for the left motor </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00132">132</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_af6b1197771f0540b0becc4117d8d272f_icgraph.png" border="0" usemap="#class_move_af6b1197771f0540b0becc4117d8d272f_icgraph" alt=""/></div>
<map name="class_move_af6b1197771f0540b0becc4117d8d272f_icgraph" id="class_move_af6b1197771f0540b0becc4117d8d272f_icgraph">
<area shape="rect" id="node3" href="class_move.html#a9c5dc5c3a98abece0c2f40085c3601be" title="Move::controlMotors" alt="" coords="237,494,376,521"/><area shape="rect" id="node5" href="class_cube_approach.html#ac36a5c38b1108d4cd77172062e1795be" title="CubeApproach::doJob" alt="" coords="1183,418,1332,445"/><area shape="rect" id="node7" href="class_state_machine.html#a32064aba8c9fa4afcb649d01aaf5fd78" title="StateMachine::doJob" alt="" coords="1795,253,1939,279"/><area shape="rect" id="node9" href="class_extended_move.html#adfe6e7de87eab16e9a85ad5434819fee" title="ExtendedMove::executeCommand" alt="" coords="425,291,645,318"/><area shape="rect" id="node27" href="class_line_center.html#aa466b77cad70e564633e106efde81d4f" title="LineCenter::doJob" alt="" coords="1194,151,1321,178"/><area shape="rect" id="node42" href="class_line_follow.html#a46aa4b76c945adf0119a5dbb83a47481" title="LineFollow::startIt" alt="" coords="473,621,597,647"/><area shape="rect" id="node44" href="class_move.html#a0d9285d4088aa0c6fdab04f0a0e5df2c" title="Move::changeMotorSpeed" alt="" coords="449,671,621,698"/><area shape="rect" id="node46" href="class_move.html#a9d25d16f505526378fb4e43ee9e3b8c5" title="Move::setMotorSpeed" alt="" coords="730,519,878,546"/><area shape="rect" id="node53" href="class_state_machine.html#a26dd1980d9d8f24050b624fb16ac0e58" title="StateMachine::checkCommands" alt="" coords="699,570,909,597"/><area shape="rect" id="node11" href="class_extended_move.html#ab03bf2a16ad494c392c209d5c0b3b65d" title="ExtendedMove::doJob" alt="" coords="729,241,879,267"/><area shape="rect" id="node13" href="class_extended_move.html#a816f77b595c0ca03d44dd21b2d4de5ba" title="ExtendedMove::startCurrentQueue" alt="" coords="693,291,915,318"/><area shape="rect" id="node16" href="class_cube_approach.html#a7d68e4fab2b3f7590b21aef387855633" title="CubeApproach::turn" alt="" coords="977,367,1114,394"/><area shape="rect" id="node19" href="class_curve_left.html#a2f70c4b1efef29cdf04dff01e6a90336" title="CurveLeft::startIt" alt="" coords="1199,87,1315,114"/><area shape="rect" id="node22" href="class_lift_cube.html#ab5d1090dfcf43a319666d905b374d4a6" title="LiftCube::doJob" alt="" coords="1511,227,1622,254"/><area shape="rect" id="node25" href="class_line_center.html#a4496fa59d40b06887e2dbc881b9b4ce7" title="LineCenter::doCorrection" alt="" coords="963,165,1128,191"/><area shape="rect" id="node35" href="class_move_back_to_line.html#a8b48709e127b00072dcce276cff5055b" title="MoveBackToLine::startIt" alt="" coords="1177,266,1338,293"/><area shape="rect" id="node38" href="class_state_machine.html#ab3634a64f8a4065a7586fcd7b32883d1" title="StateMachine::startDriveOverFinishLineExtMoveCommand" alt="" coords="1387,329,1746,355"/><area shape="rect" id="node29" href="class_curve_left.html#a34930d2641dbbd389c536999a560f158" title="CurveLeft::doJob" alt="" coords="1508,126,1625,153"/><area shape="rect" id="node32" href="class_move_back_to_line.html#a2481a81f7c90dee23d229911c8821e65" title="MoveBackToLine::doJob" alt="" coords="1485,177,1648,203"/><area shape="rect" id="node48" href="class_line_follow.html#a93ff35747f2ae3bb26998f07243afc3c" title="LineFollow::doJob" alt="" coords="983,519,1108,546"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9d25d16f505526378fb4e43ee9e3b8c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_move.html#a9d25d16f505526378fb4e43ee9e3b8c5">Move::setMotorSpeed</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>speedLeftMotor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>speedRightMotor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the speed of the left and right motor to the given speeds. The speed will not be less than 0 or more than 255 at the end. The direction of both motors is not affected. If they are not moving at the moment, a call to this method will not cause them rotating. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">speedLeftMotor</td><td>The value that shall be assigned to the left motor. </td></tr>
    <tr><td class="paramname">speedRightMotor</td><td>The value that shall be assigned to the right motor. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00219">219</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a9d25d16f505526378fb4e43ee9e3b8c5_cgraph.png" border="0" usemap="#class_move_a9d25d16f505526378fb4e43ee9e3b8c5_cgraph" alt=""/></div>
<map name="class_move_a9d25d16f505526378fb4e43ee9e3b8c5_cgraph" id="class_move_a9d25d16f505526378fb4e43ee9e3b8c5_cgraph">
<area shape="rect" id="node3" href="class_communication.html#a8679b3cb7ceef5527faa24454ce0f18a" title="Communication::send" alt="" coords="411,5,559,32"/><area shape="rect" id="node5" href="class_move.html#a9c5dc5c3a98abece0c2f40085c3601be" title="Move::controlMotors" alt="" coords="203,56,341,83"/><area shape="rect" id="node8" href="class_move.html#af6b1197771f0540b0becc4117d8d272f" title="Move::setLeftMotorDirection" alt="" coords="394,56,577,83"/><area shape="rect" id="node10" href="class_move.html#a06e67dafd581bbd086da404a90c4eeec" title="Move::setRightMotorDirection" alt="" coords="389,107,581,133"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a9d25d16f505526378fb4e43ee9e3b8c5_icgraph.png" border="0" usemap="#class_move_a9d25d16f505526378fb4e43ee9e3b8c5_icgraph" alt=""/></div>
<map name="class_move_a9d25d16f505526378fb4e43ee9e3b8c5_icgraph" id="class_move_a9d25d16f505526378fb4e43ee9e3b8c5_icgraph">
<area shape="rect" id="node3" href="class_line_follow.html#a93ff35747f2ae3bb26998f07243afc3c" title="LineFollow::doJob" alt="" coords="203,31,328,57"/><area shape="rect" id="node5" href="class_cube_approach.html#ac36a5c38b1108d4cd77172062e1795be" title="CubeApproach::doJob" alt="" coords="376,5,525,32"/><area shape="rect" id="node7" href="class_state_machine.html#a32064aba8c9fa4afcb649d01aaf5fd78" title="StateMachine::doJob" alt="" coords="573,31,717,57"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a06e67dafd581bbd086da404a90c4eeec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_move.html#a06e67dafd581bbd086da404a90c4eeec">Move::setRightMotorDirection</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a>&#160;</td>
          <td class="paramname"><em>dir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the direction of the right motor according to the given enum value. <b>The enum value valueDependant will be ignored.</b> </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td>direction to set for the right motor </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_move_8cpp_source.html#l00164">164</a> of file <a class="el" href="_move_8cpp_source.html">Move.cpp</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_move_a06e67dafd581bbd086da404a90c4eeec_icgraph.png" border="0" usemap="#class_move_a06e67dafd581bbd086da404a90c4eeec_icgraph" alt=""/></div>
<map name="class_move_a06e67dafd581bbd086da404a90c4eeec_icgraph" id="class_move_a06e67dafd581bbd086da404a90c4eeec_icgraph">
<area shape="rect" id="node3" href="class_move.html#a9c5dc5c3a98abece0c2f40085c3601be" title="Move::controlMotors" alt="" coords="245,494,384,521"/><area shape="rect" id="node5" href="class_cube_approach.html#ac36a5c38b1108d4cd77172062e1795be" title="CubeApproach::doJob" alt="" coords="1191,418,1340,445"/><area shape="rect" id="node7" href="class_state_machine.html#a32064aba8c9fa4afcb649d01aaf5fd78" title="StateMachine::doJob" alt="" coords="1803,253,1947,279"/><area shape="rect" id="node9" href="class_extended_move.html#adfe6e7de87eab16e9a85ad5434819fee" title="ExtendedMove::executeCommand" alt="" coords="433,291,653,318"/><area shape="rect" id="node27" href="class_line_center.html#aa466b77cad70e564633e106efde81d4f" title="LineCenter::doJob" alt="" coords="1202,151,1329,178"/><area shape="rect" id="node42" href="class_line_follow.html#a46aa4b76c945adf0119a5dbb83a47481" title="LineFollow::startIt" alt="" coords="481,621,605,647"/><area shape="rect" id="node44" href="class_move.html#a0d9285d4088aa0c6fdab04f0a0e5df2c" title="Move::changeMotorSpeed" alt="" coords="457,671,629,698"/><area shape="rect" id="node46" href="class_move.html#a9d25d16f505526378fb4e43ee9e3b8c5" title="Move::setMotorSpeed" alt="" coords="738,519,886,546"/><area shape="rect" id="node53" href="class_state_machine.html#a26dd1980d9d8f24050b624fb16ac0e58" title="StateMachine::checkCommands" alt="" coords="707,570,917,597"/><area shape="rect" id="node11" href="class_extended_move.html#ab03bf2a16ad494c392c209d5c0b3b65d" title="ExtendedMove::doJob" alt="" coords="737,241,887,267"/><area shape="rect" id="node13" href="class_extended_move.html#a816f77b595c0ca03d44dd21b2d4de5ba" title="ExtendedMove::startCurrentQueue" alt="" coords="701,291,923,318"/><area shape="rect" id="node16" href="class_cube_approach.html#a7d68e4fab2b3f7590b21aef387855633" title="CubeApproach::turn" alt="" coords="985,367,1122,394"/><area shape="rect" id="node19" href="class_curve_left.html#a2f70c4b1efef29cdf04dff01e6a90336" title="CurveLeft::startIt" alt="" coords="1207,87,1323,114"/><area shape="rect" id="node22" href="class_lift_cube.html#ab5d1090dfcf43a319666d905b374d4a6" title="LiftCube::doJob" alt="" coords="1519,227,1630,254"/><area shape="rect" id="node25" href="class_line_center.html#a4496fa59d40b06887e2dbc881b9b4ce7" title="LineCenter::doCorrection" alt="" coords="971,165,1136,191"/><area shape="rect" id="node35" href="class_move_back_to_line.html#a8b48709e127b00072dcce276cff5055b" title="MoveBackToLine::startIt" alt="" coords="1185,266,1346,293"/><area shape="rect" id="node38" href="class_state_machine.html#ab3634a64f8a4065a7586fcd7b32883d1" title="StateMachine::startDriveOverFinishLineExtMoveCommand" alt="" coords="1395,329,1754,355"/><area shape="rect" id="node29" href="class_curve_left.html#a34930d2641dbbd389c536999a560f158" title="CurveLeft::doJob" alt="" coords="1516,126,1633,153"/><area shape="rect" id="node32" href="class_move_back_to_line.html#a2481a81f7c90dee23d229911c8821e65" title="MoveBackToLine::doJob" alt="" coords="1493,177,1656,203"/><area shape="rect" id="node48" href="class_line_follow.html#a93ff35747f2ae3bb26998f07243afc3c" title="LineFollow::doJob" alt="" coords="991,519,1116,546"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ae9e6d0860fc8dcf67798b19b961044cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_communication.html">Communication</a>* <a class="el" href="class_move.html#ae9e6d0860fc8dcf67798b19b961044cc">Move::_com</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The reference to the serial communication class. </p>

<p>Definition at line <a class="el" href="_move_8h_source.html#l00030">30</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad5c8392b7540a9b46adf66918ef83fdb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_configuration.html">Configuration</a>* <a class="el" href="class_move.html#ad5c8392b7540a9b46adf66918ef83fdb">Move::_conf</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The reference to the configuration class. </p>

<p>Definition at line <a class="el" href="_move_8h_source.html#l00031">31</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>

</div>
</div>
<a class="anchor" id="a280c47406bd7e652c35c7900ca8c745b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a> <a class="el" href="class_move.html#a280c47406bd7e652c35c7900ca8c745b">Move::_dirLeftMotor</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>current direction of left motor </p>

<p>Definition at line <a class="el" href="_move_8h_source.html#l00025">25</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>

</div>
</div>
<a class="anchor" id="ace1041b9df6281fdc960013ccac5c32a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_move_8h.html#a4d576498f070661245f38f5f34d34f02">TMotorDirection</a> <a class="el" href="class_move.html#ace1041b9df6281fdc960013ccac5c32a">Move::_dirRightMotor</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>current direction of right motor </p>

<p>Definition at line <a class="el" href="_move_8h_source.html#l00026">26</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1ce3157933da403944e754b380365c93"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_move.html">Move</a> <a class="el" href="class_move.html#a1ce3157933da403944e754b380365c93">Move::_instance</a><code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Static reference to the singleton object. </p>

<p>Definition at line <a class="el" href="_move_8h_source.html#l00022">22</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab5a52d3f029707c767ef27a44fa5269a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="class_move.html#ab5a52d3f029707c767ef27a44fa5269a">Move::_instanceCreated</a> = false<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_move_8h_source.html#l00023">23</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>

</div>
</div>
<a class="anchor" id="ada9423f195c9ee65b5448fcaabb96877"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">byte <a class="el" href="class_move.html#ada9423f195c9ee65b5448fcaabb96877">Move::_speedLeft</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>current speed of left motor (pwm value 0-255) </p>

<p>Definition at line <a class="el" href="_move_8h_source.html#l00027">27</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>

</div>
</div>
<a class="anchor" id="a13362460beddf2de2415d51f3ed70841"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">byte <a class="el" href="class_move.html#a13362460beddf2de2415d51f3ed70841">Move::_speedRight</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>current speed of right motor (pwm value 0-255) </p>

<p>Definition at line <a class="el" href="_move_8h_source.html#l00028">28</a> of file <a class="el" href="_move_8h_source.html">Move.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Workspace/Arduino/prencar/<a class="el" href="_move_8h_source.html">Move.h</a></li>
<li>D:/Workspace/Arduino/prencar/<a class="el" href="_move_8cpp_source.html">Move.cpp</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_move.html">Move</a>      </li>

    <li class="footer">Generated on Thu Jun 7 2012 20:47:46 for prencar by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
